<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8" />
    <title>无线公共支持综合网管理平台</title>
    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/animate.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font-awesome.min.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/icon.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/app.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/ui/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/ui/zTree/css/zTreeStyle/zTreeStyle.css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bianfeng.css" type="text/css" />
    <!--[if lt IE 9]>
    <script src="__ROOT__/Public/admin/js/ie/html5shiv.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/respond.min.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/excanvas.js"></script>
    <![endif]-->
</head>
<body class="">
<section class="vbox">
    <include file="Public:header" />
    <section>
        <section class="hbox stretch">
            <aside class="bg-black aside-md hidden-print hidden-xs" id="nav">
                <include file="Public:left" />
            </aside>
            <section id="content">
                <section class="hbox stretch">
                    <section>
                        <section class="vbox">
                            <section class="scrollable padder">
                                <div class="m-b-md">
                                    <h3 class="m-b-none">新建渠道宣传页</h3>
                                </div>
                                <section class="panel panel-default">
                                    <div class="panel-body">
                                        <form data-validate="parsley" class="form-horizontal" action="{:U('Admin/Channel/AddChannel', '', false, true)}" method="post">
                                            <div class="form-group"></div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label has-error">页面名称<i class="control-label">*</i></label>

                                                <div class="col-sm-10">
                                                     <input name="id" type="hidden" value="{$channel.id}">
                                                     <input name="isedit" type="hidden" value="{$isedit}">
                                                    
                                                    <input name="name" type="text" id="max_length_input_01" class="form-control parsley-validated" placeholder="请输入页面名称" value="{$channel.name}" data-required="true" />
                                                </div>


                                            </div>

                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label has-error">链接标识<i class="control-label">*</i></label>

                                                <div class="col-sm-10">
                                                    <input name="sign" type="text" id="max_length_input_02" class="form-control parsley-validated" placeholder="请输入链接标识" value="{$channel.sign}" data-required="true" data-regexp="[\w\-]+$" />
                                                    <span class="help-block m-b-none">标识必须使用字母、数字、下划线和横杠</span>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">选择PC端模板</label>

                                                <div class="col-sm-10">
                                                    <select name="pc_model" class="form-control">
                                                        <option>请选择...</option>
                                                        <?php
                                                            foreach ($game_name as $key => $value) {
                                                                echo "<optgroup label='$value'>$value</optgroup>";
                                                                foreach ($model[$value] as $key => $value) {
                                                                    echo "<option value='$value[id]'".($value['pc'] ? 'selected' : '').">$value[name]</option>";
                                                                }
                                                            }
                                                        ?>
                                                    </select>
                                                    <span class="help-block m-b-none">请选择二级目录</span>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">选择移动端模板</label>

                                                <div class="col-sm-10">
                                                    <select name="mo_model" class="form-control">
                                                        <option>请选择...</option>
                                                        <?php
                                                            foreach ($game_name as $key => $value) {
                                                                echo "<optgroup label='$value'>$value</optgroup>";
                                                                foreach ($model[$value] as $key => $value) {
                                                                    echo "<option value='$value[id]' ".($value['mobile'] ? 'selected' : '').">$value[name]</option>";
                                                                }
                                                            }
                                                        ?>
                                                    </select>
                                                    <span class="help-block m-b-none">请选择二级目录</span>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">移动端IOS下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="mo_ios" type="text" class="form-control" placeholder="请输入链接" value="{$channel.mo_ios}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">移动端Android下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="mo_andriod" type="text" class="form-control" placeholder="请输入链接" value="{$channel.mo_andriod}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">PC端IOS下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="pc_ios" type="text" class="form-control" placeholder="请输入链接" value="{$channel.pc_ios}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">PC端Android下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="pc_andriod" type="text" class="form-control" placeholder="请输入链接" value="{$channel.pc_andriod}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">二维码IOS下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="qr_ios" type="text" class="form-control" placeholder="请输入链接" value="{$channel.qr_ios}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">二维码Android下载链接</label>

                                                <div class="col-sm-10">
                                                    <div class="input-group col-sm-12">
                                                        <input name="qr_andriod" type="text" class="form-control" placeholder="请输入链接" value="{$channel.qr_andriod}" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <div class="col-sm-4 col-sm-offset-2">
                                                    <button type="button" class="btn btn-default" id="btn_back">取消</button>
                                                    <button type="submit" class="btn btn-primary">确定</button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </section>
                            </section>
                        </section>
                    </section>
                </section>
                <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen,open" data-target="#nav,html"></a>
            </section>
        </section>
    </section>
</section>
<script src="__ROOT__/Public/admin/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="__ROOT__/Public/admin/js/bootstrap.js"></script>
<!-- App -->
<script src="__ROOT__/Public/admin/js/bianfeng.js"></script>
<script src="__ROOT__/Public/admin/js/app.js"></script>
<script src="__ROOT__/Public/admin/js/parsley/parsley.min.js"></script>
<script src="__ROOT__/Public/admin/js/parsley/parsley.extend.js"></script>

</body>
</html>